package org.longteng.mobileluck.orc.service;

import org.longteng.mobileluck.orc.vo.OrcApiCount;

/**
 * orc的API调用统计接口
 * @author hymn.com
 */
public interface ImageToTextApiCount {
    /**
     * 返回orc的API调用统计状态
     * @param apiType
     * @return
     */
    public OrcApiCount getOrcApiCount(String apiType);

    /**
     * 更新orc的API调用次数到DB或redis，默认基础类是到ConcurrentHashMap
     * @param orcApiCount
     */
    public void updateOrcApiCount(OrcApiCount orcApiCount);
}
